package org.example.everyday;

/**
 * <p>
 * Description:TODO 详细描述
 * <p>
 * <p>
 *
 * @author anlu
 * @date 2022/6/8 15:25
 */
public class Lc1037 {
    public static void main(String[] args) {
        Lc1037 lc1037 = new Lc1037();
//        int[][] points = {{1,1},{2,3},{3,2}};
        int[][] points = {{1,1},{1,2},{1,3}};
        boolean res = lc1037.isBoomerang(points);
        System.out.println(res);

    }

    public boolean isBoomerang(int[][] points) {
        int[] v1 = {points[1][0] - points[0][0], points[1][1] - points[0][1]};
        int[] v2 = {points[2][0] - points[0][0], points[2][1] - points[0][1]};
        return v1[0] * v2[1] - v1[1] * v2[0] != 0;
    }


}
